import { ref } from "vue";


export default function createContext() {
  const state = ref()
  const provider = (value) => {
    state.value = value;
  }

  const consumer = () => {
    return state.value;
  }

  return {
    provider,
    consumer
  }
}